package com.xr.miniprogram.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xr.miniprogram.domain.MiniProgramAgreement;

/**
 * 协议Service接口
 * 
 * @author wls
 * @date 2023-12-15
 */
public interface IMiniProgramAgreementService extends IService<MiniProgramAgreement>
{
    /**
     * 查询协议
     * 
     * @param agreementId 协议主键
     * @return 协议
     */
    public MiniProgramAgreement selectAgreementById(Long agreementId);

    /**
     * 查询协议列表
     * 
     * @param miniProgramAgreement 协议
     * @return 协议集合
     */
    public List<MiniProgramAgreement> selectAgreementList(MiniProgramAgreement miniProgramAgreement);

    /**
     * 新增协议
     * 
     * @param miniProgramAgreement 协议
     * @return 结果
     */
    public int insertAgreement(MiniProgramAgreement miniProgramAgreement);

    /**
     * 修改协议
     * 
     * @param miniProgramAgreement 协议
     * @return 结果
     */
    public int updateAgreement(MiniProgramAgreement miniProgramAgreement);

    /**
     * 批量删除协议
     * 
     * @param agreementIds 需要删除的协议主键集合
     * @return 结果
     */
    public int deleteAgreementByAgreementIds(Long[] agreementIds);

    /**
     * 删除协议信息
     * 
     * @param agreementId 协议主键
     * @return 结果
     */
    public int deleteAgreementByAgreementId(Long agreementId);
}
